import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './assets/css/global.less'
import '@/assets/font/iconfont.css'
import SocketService from './utils/socket_service'
import store from '@/store/index'
// 链接websocket
SocketService.Instance.connect()
// 设置websocket实例
Vue.prototype.$socket = SocketService.Instance;
Vue.config.productionTip = false
Vue.prototype.$echarts = window.echarts
import axios from 'axios'
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/'
// 将axios挂载到Vue的原型对象上
Vue.prototype.$http = axios

new Vue({
  router,
  render: h => h(App),
  store
}).$mount('#app')
